package com.hzqy.service.epg;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.hzqy.persistence.dao.epg.AcDrawDao;
import com.hzqy.web.vo.epg.AcDrawButtonVo;
import com.hzqy.web.vo.epg.AcDrawChartVo;


@Service
public class AcDrawServiceBean {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	@Resource
	private AcDrawDao acDrawDao;

	public  Map<String, Object> selectChartList (AcDrawChartVo adcvo){
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("f_adc_activityid", adcvo.getF_adc_activityid());
		map.put("f_adc_type", adcvo.getF_adc_type());
		List<AcDrawChartVo> list = acDrawDao.selectChartList(map);
		Map<String, Object> result = new HashMap<String, Object>();
		result.put("list", list);
		return result;
	}
	
	public  Map<String, Object> selectButtonList (AcDrawButtonVo adbvo){
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("f_adb_draw_id", adbvo.getF_adb_draw_id());
		map.put("f_adc_activityid", adbvo.getF_adc_activityid());
		map.put("f_adc_type", adbvo.getF_adc_type());
		List<AcDrawButtonVo> list = acDrawDao.selectButtonList(map);
		Map<String, Object> result = new HashMap<String, Object>();
		result.put("list", list);
		return result;
	}

}
